cmake_minimum_required(VERSION 3.5.1)

project(webrtc)

set(C_FLAGS
  -DWEBRTC_POSIX
  -DWEBRTC_LINUX
  -DWEBRTC_APM_DEBUG_DUMP=0
  -O2
  -msse2
)

string(REPLACE ";" " " CMAKE_C_FLAGS "${C_FLAGS}")
list(APPEND C_FLAGS "-std=c++11")
string(REPLACE ";" " " CMAKE_CXX_FLAGS "${C_FLAGS}")

set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)

include_directories(${PROJECT_SOURCE_DIR})
include_directories(${PROJECT_SOURCE_DIR}/modules)

add_subdirectory(rtc_base)
add_subdirectory(modules/rtp_rtcp)
